package com.wyh.blog.service.impl;

import com.wyh.blog.dao.ArticleDao;
import com.wyh.blog.entity.Article;
import com.wyh.blog.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleServiceImpl implements ArticleService {

    @Autowired
    private ArticleDao articleDao;

    @Override
    public void addText(String content,String title) {
        articleDao.addText(content,title);
    }

    @Override
    public Article getText(int id) {
        return articleDao.getText(id);
    }

}
